package qidian.it.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import qidian.it.entity.Result;
import qidian.it.entity.User;

@FeignClient(value = "product")
public interface ProductOpenFeign {

    @RequestMapping("/productInfo")
     Result productInfo();

    @RequestMapping("/productName")
     Result getProductName(@RequestParam("productName") String productName);

     @RequestMapping("/getUserInfo")
     Result getUserInfo(User user);
}
